<?php

/**
 * ZonasViviendas form.
 *
 * @package    form
 * @subpackage ZonasViviendas
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
 */
class SearcherForm extends BaseForm
{
  public function configure()
  {
  $personnes = array(2 =>'2 '.sfContext::getInstance()->getI18N()->__('people', null, 'forms'), 4 => '4 '.sfContext::getInstance()->getI18N()->__('people', null, 'forms'), 6 => '6 '.sfContext::getInstance()->getI18N()->__('people', null, 'forms'), 8 => '8 '.sfContext::getInstance()->getI18N()->__('people', null, 'forms'), 10 => '10 '.sfContext::getInstance()->getI18N()->__('people', null, 'forms'), 12 => '12 '.sfContext::getInstance()->getI18N()->__('people', null, 'forms'), 14 => '14 '.sfContext::getInstance()->getI18N()->__('people', null, 'forms'), 16 => '16 '.sfContext::getInstance()->getI18N()->__('people', null, 'forms'));
  $semaines = array(1 =>'1 '.sfContext::getInstance()->getI18N()->__('week', null, 'forms'), 2 => '2 '.sfContext::getInstance()->getI18N()->__('weeks', null, 'forms'), 3 => '3 '.sfContext::getInstance()->getI18N()->__('weeks', null, 'forms'), 4 => '4 '.sfContext::getInstance()->getI18N()->__('weeks', null, 'forms'));
  $appt_villa = array(3 =>sfContext::getInstance()->getI18N()->__('Undefined', null, 'forms'), 2 => sfContext::getInstance()->getI18N()->__('Villa', null, 'forms'), 1 =>sfContext::getInstance()->getI18N()->__('Appt.', null, 'forms'), 0 =>sfContext::getInstance()->getI18N()->__('Studio', null, 'forms'));
  
  $piscine = array(4 =>sfContext::getInstance()->getI18N()->__('Undefined', null, 'forms'), 2 =>sfContext::getInstance()->getI18N()->__('privateSwimmingpool', null, 'forms'), 1 => sfContext::getInstance()->getI18N()->__('commSwimmingpool', null, 'forms'), 0 => sfContext::getInstance()->getI18N()->__('noSwimmingpool', null, 'forms'));
  $prix = array(0 =>'Entre 500euros et 800euros', 1 => 'Entre 800euros et 1200euros', 2 => 'Entre 1200euros et 1500euros');
    
  $this->widgetSchema['personnes'] =  new sfWidgetFormSelect(array('choices' => $personnes));
  $this->widgetSchema['semaines'] =  new sfWidgetFormSelect(array('choices' => $semaines));
  $this->widgetSchema['appt_villa'] =  new sfWidgetFormSelect(array('choices' => $appt_villa));
  $this->widgetSchema['piscine'] =  new sfWidgetFormSelect(array('choices' => $piscine));
  $this->widgetSchema['prix'] =  new sfWidgetFormSelect(array('choices' => $prix));
  $this->widgetSchema['from_date'] =  new sfWidgetFormInputText();
  $this->widgetSchema->setLabel('from_date', sfContext::getInstance()->getI18N()->__('Week-end arrivee', null, 'forms'));
  $this->widgetSchema->setLabel('appt_villa', sfContext::getInstance()->getI18N()->__('Appt./Villa', null, 'forms'));
  $this->widgetSchema->setLabel('personnes', sfContext::getInstance()->getI18N()->__('people', null, 'forms'));
  $this->widgetSchema->setLabel('piscine', sfContext::getInstance()->getI18N()->__('swimmingpool', null, 'forms'));
  $this->widgetSchema->setLabel('semaines', sfContext::getInstance()->getI18N()->__('weeks', null, 'forms'));
  }
}